-- GENERATED SPELL FOR [Azure Ring Guardian] --


function spell0_27638(pUnit, Event) --@Ice Beam,n/a--
pUnit:FullCastSpellOnTarget(49549,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27638', 7500, 1)
end

function spell1_27638(pUnit, Event) --@Ice Beam,n/a--
pUnit:FullCastSpellOnTarget(59211,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27638', 7500, 1)
end

function Sorts_27638(pUnit, Event)
local choix_sorts_27638 = math.random(0, 1)
if choix_sorts_27638 == 0 then
pUnit:RegisterEvent('spell0_27638', 1, 1)
end
if choix_sorts_27638 == 1 then
pUnit:RegisterEvent('spell1_27638', 1, 1)
end
end

function mob27638_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27638', math.random(1500, 3000), 1)
end

function mob27638_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27638_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27638_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27638, 1, 'mob27638_Action')
RegisterUnitEvent(27638, 2, 'mob27638_Leave')
RegisterUnitEvent(27638, 3, 'mob27638_Kill')
RegisterUnitEvent(27638, 4, 'mob27638_Die')
